package com.itgt.classwork;

public class Chapters4_1_1 {

	public static void main(String[] args) {
		int []num = new int[]{23,45,13,47,5,98,5,32,34,54};
		int min = num[0];
		int max = num[0];
		for(int i=1;i<num.length;i++) {
			if(num[i]<min) {
				min=num[i];
			}
			if(num[i]>max) {
				max=num[i];
			}
		}
		System.out.println(min);
		System.out.println(max);
	}

}
